package JavaBean;

public class two_deal {
	private int n1, n2, n3;

	public two_deal() {
		super();
	}

	public two_deal(int n1, int n2, int n3) {
		super();
		this.n1 = n1;
		this.n2 = n2;
		this.n3 = n3;
	}

	public int getN1() {
		return n1;
	}

	public void setN1(int n1) {
		this.n1 = n1;
	}

	public int getN2() {
		return n2;
	}

	public void setN2(int n2) {
		this.n2 = n2;
	}

	public int getN3() {
		return n3;
	}

	public void setN3(int n3) {
		this.n3 = n3;
	}
	public int Max(){
		int a[] = {n1, n2, n3}, i, max = n1;
		for(i=0;i<3;i++){
			if(max < a[i]){
				max = a[i];
			}
		}
		return max;
	}
	public int Min(){
		int a[] = {n1, n2, n3}, i, min = n1;
		for(i=0;i<3;i++){
			if(min > a[i]){
				min = a[i];
			}
		}
		return min;
	}
}
